Reproducible builds requires that the build time stamp is not
authorPaul Gevers <elbrus@debian.org>
Sun, 27 Nov 2022 19:50:54 +0000 (19:50 +0000)
committerAbou Al Montacir <abou.almontacir@sfr.fr>
Sun, 27 Nov 2022 19:50:54 +0000 (19:50 +0000)
commit41b7c5c7fdd20749be29893f20de3e2197aa356d
tree9108fe0daeda01bdb3e0ef1002b08ae3ee95d5e8
parent8f303316337789ef60102f6141a2ec5629ca8ba5
Reproducible builds requires that the build time stamp is not

recorded in binaries. In FPC they are fuild in via the $INCLUDE %DATE%
directive which calls getdatestr in globals.pas. To allow reproducible builds
we should honor the SOURCE_DATE_EPOCH environment variable. To not depend on
the dateutil unit, we include the required code from that package here.

Gbp-Pq: Name honor_SOURCE_DATE_EPOCH_in_date.patch
fpcsrc/compiler/globals.pas